import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [

  {
    path: "/",
    name: "main",
    component: () => import("@views/main.vue"),
    children: [
      //user
      {
        path: "/organization",
        name: "OrganiZation",
        component: () => import("@views/user/organization/OrganizationInfo.vue"), // 机构
        meta: { index: "1", title: "机构", record: true },
      },
      //人员基本信息表
      {
        path: "/personalInformation",
        name: "PersonalInformation",
        // alias: "editpersonnel",
        component: () =>
          import("@views/user/personalInformation/PersonalInformation.vue"), //人员基本信息
        meta: { index: "2", title: "人员基本信息", record: true },

        children: [
          {
            //编辑人员信息
            path: "",
            name: "EditPersonnel",
            component: () =>
              import(
                "@views/user/personalInformation/personnelson/EditPersonnel.vue"
              ),
            meta: { index: "2", title: "人员基本信息", record: true },
          },
          //搜索人员信息
          {
            path: "/searchpersonnel",
            name: "SearchPersonnel",
            component: () =>
              import(
                "@views/user/personalInformation/personnelson/SearchPersonnel.vue"
              ),
            meta: { index: "2", title: "人员基本信息", record: true },
          },
          //培训文件上传
          {
            path: "/trainingfileupload",
            name: "TrainingFile",
            component: () =>
              import(
                "@views/user/personalInformation/securityeducation/upload/TrainingFile.vue"
              ), // 安全教育培训
            meta: { index: "2", title: "人员基本信息", record: true },
          },
          //企业培训/档案
          {
            path: "/businessprofile",
            name: "BusinessProFile",
            component: () =>
              import(
                "@views/user/personalInformation/securityeducation/archives/BusinessProfile.vue"
              ), // 安全教育培训
            meta: { index: "2", title: "人员基本信息", record: true },
          },
          //外培及特证统计表
          {
            path: "/statistics",
            name: "Statistics",
            component: () =>
              import(
                "@views/user/personalInformation/securityeducation/archives/Statistics.vue"
              ), // 安全教育培训
            meta: { index: "2", title: "人员基本信息", record: true },
          },
          //个人档案
          {
            path: "/personalprofile",
            name: "PersonalProFile",
            component: () =>
              import(
                "@views/user/personalInformation/securityeducation/archives/PersonalProfile.vue"
              ), // 安全教育培训
            meta: { index: "2", title: "人员基本信息", record: true },
          },
          //参培人员名单
          {
            path: "/traineestable",
            name: "TraineesTable",
            component: () =>
              import(
                "@views/user/personalInformation/securityeducation/archives/Trainees.vue"
              ), // 安全教育培训
            meta: { index: "2", title: "人员基本信息", record: true },
          },
        ],
      },
      //安全管理文件
      {
        path: "/safetymanagement",
        name: "SafetyManagement",
        component: () => import("@views/user/safetymanagement/index.vue"), //人员基本信息
        meta: { index: "3", title: "安全管理文件", record: true },
        children: [
          {
            path: "",
            name: "responsibilitysystem",
            component: () =>
              import(
                "@views/user/safetymanagement/responsibilitysystem/index.vue"
              ),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
          {
            path: "/safetyregulations",
            name: "safetyregulations",
            component: () =>
              import(
                "@views/user/safetymanagement/safetyregulations/index.vue"
              ),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
          {
            path: "/safetyoperatingprocedures",
            name: "safetyoperatingprocedures",
            component: () =>
              import(
                "@views/user/safetymanagement/safetyoperatingprocedures/index.vue"
              ),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
          {
            path: "/institutionalsystem",
            name: "institutionalsystem",
            component: () =>
              import(
                "@views/user/safetymanagement/institutionalsystem/index.vue"
              ),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
          {
            path: "/riskidentification",
            name: "RiskIdentification",
            component: () =>
              import(
                "@views/user/safetymanagement/riskidentification/index.vue"
              ),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
          {
            path: "/jobprocedures",
            name: "jobprocedures",
            component: () =>
              import("@views/user/safetymanagement/jobprocedures/index.vue"),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
          {
            path: "/dailysecuritychecks",
            name: "dailysecuritychecks",
            component: () =>
              import(
                "@views/user/safetymanagement/dailysecuritychecks/index.vue"
              ),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
          {
            path: "/emergencysupportsystem",
            name: "emergencysupportsystem",
            component: () =>
              import(
                "@views/user/safetymanagement/emergencysupportsystem/index.vue"
              ),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
          {
            path: "/outsourcedprojectmanagement",
            name: "outsourcedprojectmanagement",
            component: () =>
              import(
                "@views/user/safetymanagement/outsourcedprojectmanagement/index.vue"
              ),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
          {
            path: "/corporateproductionresponsibility",
            name: "corporateproductionresponsibility",
            component: () =>
              import(
                "@views/user/safetymanagement/corporateproductionresponsibility/index.vue"
              ),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
          {
            path: "/productionpostresponsibilities",
            name: "productionpostresponsibilities",
            component: () =>
              import(
                "@views/user/safetymanagement/productionpostresponsibilities/index.vue"
              ),
            meta: { index: "3", title: "安全管理文件", record: true },
          },
        ],
      },
      //生产工艺及设备设施
      {
        path: "/processequipment",
        name: "processequipment",
        component: () => import("@views/user/processequipment/index.vue"), //人员基本信息
        meta: { index: "4", title: "生产工艺及设备设施", record: true },
        children: [
          // 工艺流程
          {
            path: "",
            name: "process-flow",
            component: () =>
              import("@views/user/processequipment/processflow/index.vue"),
            meta: { index: "4", title: "安全管理文件", record: true },
          },
          //清单列表
          {
            path: "/manifest",
            name: "manifest",
            component: () =>
              import("@views/user/processequipment/manifest/index.vue"),
            meta: { index: "4", title: "安全管理文件", record: true },
          },
          //设备
          {
            path: "/equipment",
            name: "equipment",
            component: () =>
              import("@views/user/processequipment/equipment/index.vue"),
            meta: { index: "4", title: "安全管理文件", record: true },
          },
          //维护保养记录
          {
            path: "/maintenance-record",
            name: "maintenance-record",
            component: () =>
              import("@views/user/processequipment/maintenancerecord/index.vue"),
            meta: { index: "4", title: "安全管理文件", record: true },
          },
          //维护记录详细
          {
            path: "/maintenance-detail",
            name: "maintenance-detail",
            component: () =>
              import("@views/user/processequipment/maintenancedetail/index.vue"),
            meta: { index: "4", title: "安全管理文件", record: true },
          },
          //安全设施检查相关接口
          {
            path: "/safety-checklist",
            name: "safety-checklist",
            component: () =>
              import("@views/user/processequipment/safetychecklist/index.vue"),
            meta: { index: "4", title: "安全管理文件", record: true },
          },
          {
            path: "/listsafetyfeatures",
            name: "listsafetyfeatures",
            component: () =>
              import(
                "@views/user/processequipment/listsafetyfeatures/index.vue"
              ),
            meta: { index: "4", title: "安全管理文件", record: true },
          },
          {
            path: "/devicelinking",
            name: "DeviceLinking",
            component: () =>
              import("@views/user/processequipment/devicelinking/index.vue"),
          },
        ],
      },
      //企业安全风险
      {
        path: "/securityriskmanagement",
        name: "securityriskmanagement",
        component: () => import("@views/user/securityriskmanagement/index.vue"), //人员基本信息
        meta: { index: "5", title: "生产工艺及设备设施", record: true },
        children: [
          {
            path: "",
            name: "securityrisk",
            component: () =>
              import(
                "@views/user/securityriskmanagement/securityrisk/index.vue"
              ),
            meta: { index: "5", title: "安全管理文件", record: true },
          },
        ],
      },
      //隐患排查
      {
        path: "/hiddendangerinvestigation",
        name: "hiddendangerinvestigation",
        component: () =>
          import("@views/user/hiddendangerinvestigation/index.vue"), //人员基本信息
        meta: { index: "6", title: "隐患排查治理", record: true },
        children: [
          {
            //上级检查
            path: "",
            name: "superiorcheck",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/superiorcheck/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/tow",
            name: "tow",
            component: () =>
              import("@views/user/hiddendangerinvestigation/tow/index.vue"),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/three",
            name: "three",
            component: () =>
              import("@views/user/hiddendangerinvestigation/three/index.vue"),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/four",
            name: "four",
            component: () =>
              import("@views/user/hiddendangerinvestigation/four/index.vue"),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/five",
            name: "five",
            component: () =>
              import("@views/user/hiddendangerinvestigation/five/index.vue"),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/six",
            name: "six",
            component: () =>
              import("@views/user/hiddendangerinvestigation/six/index.vue"),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/seven",
            name: "seven",
            component: () =>
              import("@views/user/hiddendangerinvestigation/seven/index.vue"),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/eight",
            name: "eight",
            component: () =>
              import("@views/user/hiddendangerinvestigation/eight/index.vue"),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/hiddendangerinvestigationsystem",
            name: "hiddendangerinvestigationsystem",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/hiddendangerinvestigationsystem/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/investigationrequirements",
            name: "investigationrequirements",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/investigationrequirements/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/dailychecklist",
            name: "dailychecklist",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/dailychecklist/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/category",
            name: "category",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/category/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/specialchecklists",
            name: "specialchecklists",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/specialchecklists/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/investigationtable",
            name: "investigationtable",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/investigationtable/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/notices",
            name: "notices",
            component: () =>
              import("@views/user/hiddendangerinvestigation/notices/index.vue"),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/ledger",
            name: "ledger",
            component: () =>
              import("@views/user/hiddendangerinvestigation/ledger/index.vue"),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/introducehiddendangers",
            name: "introducehiddendangers",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/introducehiddendangers/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/hazardinvestigationform",
            name: "hazardinvestigationform",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/hazardinvestigationform/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/programmework",
            name: "programmework",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/programmework/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
          {
            path: "/hiddendangerledger",
            name: "hiddendangerledger",
            component: () =>
              import(
                "@views/user/hiddendangerinvestigation/hiddendangerledger/index.vue"
              ),
            meta: { index: "6", title: "隐患排查治理", record: true },
          },
        ],
      },
      //
      {
        path: "/emergencymanagement",
        name: "emergencymanagement",
        component: () => import("@views/user/emergencymanagement/index.vue"), //人员基本信息
        meta: { index: "7", title: "应急管理", record: true },
        children: [
          {
            path: "",
            name: "PlanFilingForm",
            component: () =>
              import(
                "@views/user/emergencymanagement/emergencyplan/PlanFilingForm.vue"
              ),
            meta: { index: "7", title: "应急管理", record: true },
          },
          {
            path: "/filedcontingencyplan",
            name: "FiledContingencyPlan",
            component: () =>
              import(
                "@views/user/emergencymanagement/emergencyplan/FiledContingencyPlan.vue"
              ),
            meta: { index: "7", title: "应急管理", record: true },
          },
          {
            path: "/personneladdressbook",
            name: "PersonnelAddressBook",
            component: () =>
              import(
                "@views/user/emergencymanagement/emergencyplan/PersonnelAddressBook.vue"
              ),
            meta: { index: "7", title: "应急管理", record: true },
          },
          //
          {
            path: "/emergencydrillplan",
            name: "EmergencyDrillPlan",
            component: () =>
              import(
                "@views/user/emergencymanagement/emergencydrills/EmergencyDrillPlan.vue"
              ),
            meta: { index: "7", title: "应急管理", record: true },
          },
          {
            path: "/drillrecordings",
            name: "DrillRecordings",
            component: () =>
              import(
                "@views/user/emergencymanagement/emergencydrills/DrillRecordings.vue"
              ),
            meta: { index: "7", title: "应急管理", record: true },
          },
          {
            path: "/emergencydrillscheme",
            name: "EmergencyDrillScheme",
            component: () =>
              import(
                "@views/user/emergencymanagement/emergencydrills/EmergencyDrillScheme.vue"
              ),
            meta: { index: "7", title: "应急管理", record: true },
          },
          //
          {
            path: "/ambulanceprotocols",
            name: "AmbulanceProtocols",
            component: () =>
              import(
                "@views/user/emergencymanagement/emergencysuppliesmanagement/AmbulanceProtocols.vue"
              ),
            meta: { index: "7", title: "应急管理", record: true },
          },
          {
            path: "/emergencysuppliesledger",
            name: "EmergencySuppliesLedger",
            component: () =>
              import(
                "@views/user/emergencymanagement/emergencysuppliesmanagement/EmergencySuppliesLedger.vue"
              ),
            meta: { index: "7", title: "应急管理", record: true },
          },
          {
            path: "/warehousephoto",
            name: "WarehousePhoto",
            component: () =>
              import(
                "@views/user/emergencymanagement/emergencysuppliesmanagement/WarehousePhoto.vue"
              ),
            meta: { index: "7", title: "应急管理", record: true },
          },
        ],
      },
      //
      {
        path: "/laboroccupations",
        name: "laboroccupations",
        component: () => import("@views/user/laboroccupations/index.vue"), //人员基本信息
        meta: { index: "8", title: "劳动保护与职业卫生", record: true },
        children: [
          {
            path: "",
            name: "Issuancerecords",
            component: () =>
              import("@views/user/laboroccupations/Issuancerecords/index.vue"),
            meta: { index: "8", title: "劳动保护与职业卫生", record: true },
          },
          {
            path: "/occupationalhealthrecords",
            name: "occupationalhealthrecords",
            component: () =>
              import(
                "@views/user/laboroccupations/occupationalhealthrecords/index.vue"
              ),
            meta: { index: "8", title: "劳动保护与职业卫生", record: true },
          },
        ],
      },
      //
      {
        path: "/socialinsurancesecurityinvestment",
        name: "socialinsurancesecurityinvestment",
        component: () =>
          import("@views/user/socialinsurancesecurityinvestment/index.vue"), //人员基本信息
        meta: { index: "9", title: "生产工艺及设备设施", record: true },
        children: [
          {
            path: "",
            name: "participation",
            component: () =>
              import(
                "@views/user/socialinsurancesecurityinvestment/participation/index.vue"
              ),
            meta: { index: "9", title: "安全管理文件", record: true },
          },
          {
            path: "/socialinsurancesecurityinvestment",
            name: "socialinsurancesecurityinvestment",
            component: () =>
              import(
                "@views/user/socialinsurancesecurityinvestment/commercialinsurancecoverage/index.vue"
              ),
            meta: { index: "9", title: "安全管理文件", record: true },
          },
          {
            path: "/notenrolledsocialsecurity",
            name: "notenrolledsocialsecurity",
            component: () =>
              import(
                "@views/user/socialinsurancesecurityinvestment/notenrolledsocialsecurity/index.vue"
              ),
            meta: { index: "9", title: "安全管理文件", record: true },
          },
          {
            path: "/commercialinsurancecoverage",
            name: "commercialinsurancecoverage",
            component: () =>
              import(
                "@views/user/socialinsurancesecurityinvestment/commercialinsurancecoverage/index.vue"
              ),
            meta: { index: "9", title: "安全管理文件", record: true },
          },
        ],
      },
      //
      {
        path: "/hazardousworkmanagement",
        name: "hazardousworkmanagement",
        component: () =>
          import("@views/user/hazardousworkmanagement/index.vue"), //人员基本信息
        meta: { index: "10", title: "社会保险与安全投入", record: true },
        children: [
          {
            path: "",
            name: "hazardousworkmanagement",
            component: () =>
              import(
                "@views/user/hazardousworkmanagement/hazardouswork/index.vue"
              ),
            meta: { index: "10", title: "安全管理文件", record: true },
          },
        ],
      },
      // outsourcedmanagement
      {
        path: "/outsourcedmanagement",
        name: "outsourcedmanagement",
        component: () => import("@views/user/outsourcedmanagement/index.vue"), //人员基本信息
        meta: { index: "11", title: "外包作业管理", record: true },
        children: [
          {
            path: "/inspectionworks",
            name: "inspectionworks",
            component: () =>
              import(
                "@views/user/outsourcedmanagement/inspectionworks/index.vue"
              ),
            meta: { index: "11", title: "外包作业管理", record: true },
          },
        ],
      },
      //earlywarningmanagement
      {
        path: "/earlywarningmanagement",
        name: "earlywarningmanagement",
        component: () => import("@views/user/earlywarningmanagement/index.vue"), //人员基本信息
        meta: { index: "12", title: "预警管理", record: true },
      },
      //
      {
        path: "/platformbulletinboard",
        name: "earlywarningmanagement",
        component: () => import("@views/user/platformbulletinboard/index.vue"), //人员基本信息
        meta: { index: "13", title: "平台公共栏", record: true },
      },
      //standardization
      {
        path: "/standardization",
        name: "earlywarningmanagement",
        component: () => import("@views/user/standardization/index.vue"), //人员基本信息
        meta: { index: "14", title: "标准化", record: true },
        children: [
          {
            path: "",
            name: "targetre",
            component: () =>
              import(
                "@views/user/standardization/targetresponsibilities/targetre.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/suitabilityassessmentform",
            name: "suitabilityassessmentform",
            component: () =>
              import(
                "@views/user/standardization/targetresponsibilities/suitabilityassessmentform.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/situationappraisalform",
            name: "situationappraisalform",
            component: () =>
              import(
                "@views/user/standardization/targetresponsibilities/situationappraisalform.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/productioninputplan",
            name: "productioninputplan",
            component: () =>
              import(
                "@views/user/standardization/targetresponsibilities/productioninputplan.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/securityexpensesledgers",
            name: "securityexpensesledgers",
            component: () =>
              import(
                "@views/user/standardization/targetresponsibilities/securityexpensesledgers.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/culturalconstructionledger",
            name: "culturalconstructionledger",
            component: () =>
              import(
                "@views/user/standardization/targetresponsibilities/culturalconstructionledger.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          //institutionalizedmanagement
          {
            path: "/lowfile",
            name: "institutionalizedmanagement",
            component: () =>
              import(
                "@views/user/standardization/institutionalizedmanagement/LowFile.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/commentssuggestions",
            name: "CommentsSuggestions",
            component: () =>
              import(
                "@views/user/standardization/institutionalizedmanagement/CommentsSuggestions.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          //
          {
            path: "/commentssuggestions2",
            name: "CommentsSuggestionsSheet2",
            component: () =>
              import(
                "@views/user/standardization/institutionalizedmanagement/CommentsSuggestionsSheet2.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/minutesmeeting",
            name: "MinutesMeeting",
            component: () =>
              import(
                "@views/user/standardization/institutionalizedmanagement/MinutesMeeting.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/foreignpersonneltraining",
            name: "ForeignPersonnelTraining",
            component: () =>
              import(
                "@views/user/standardization/educationtraining/ForeignPersonnelTraining.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/occupationalhealth",
            name: "occupationalhealth",
            component: () =>
              import(
                "@views/user/standardization/occupationalhealth/index.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/accidentreportform",
            name: "AccidentReportForm",
            component: () =>
              import(
                "@views/user/standardization/accidentinvestigation/AccidentReportForm.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          //
          {
            path: "/incidentmanagementledger",
            name: "IncidentManagementLedger",
            component: () =>
              import(
                "@views/user/standardization/accidentinvestigation/IncidentManagementLedger.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/selfevaluationreport",
            name: "SelfEvaluationReport",
            component: () =>
              import(
                "@views/user/standardization/continuousimprovement/SelfEvaluationReport.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
          {
            path: "/continuousimprovement",
            name: "ContinuousImprovement",
            component: () =>
              import(
                "@views/user/standardization/continuousimprovement/ContinuousImprovement.vue"
              ),
            meta: { index: "14", title: "标准化", record: true },
          },
        ],
      },
    ],
  },
  {
    path: "/equipmentmaintenance",
    name: "EquipmentMaintenance",
    component: () =>
      import(
        "@views/user/processequipment/primaryequipmentmanagement/EquipmentMaintenance.vue"
      ),
  },
  {
    path: "/safetyinstrumentchecks",
    name: "SafetyInstrumentChecks",
    component: () =>
      import(
        "@views/user/processequipment/primaryequipmentmanagement/SafetyInstrumentChecks.vue"
      ),
  },

  {
    path: "/safetyfacilityinspections",
    name: "safetyfacilityinspections",
    component: () =>
      import(
        "@views/user/processequipment/primaryequipmentmanagement/SafetyFacilityInspections.vue"
      ),
  },
  {
    path: "/pdf",
    name: "pdf",
    component: () => import("@views/PDFshow/index.vue"),
  },
  {
    path: "/word",
    name: "WordA",
    component: () => import("@views/WordShow/index.vue"),
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@views/login/index.vue"),
  },
  {
    path: "/register",
    name: "register",
    component: () => import("@views/register/register.vue"),
  },
];

const router = new VueRouter({
  mode: "hash",
  base: process.env.BASE_URL,
  routes,
});

export default router;
